Skip to content

Commit

Permalink
Merge pull request #89 from bzbarsky-apple/pr-34355-darwin-fixups
Browse files Browse the repository at this point in the history
Fix the Darwin tests to actually pass.
  • Loading branch information
tcarmelveilleux authored Jul 17, 2024
2 parents 79445bf + bdf5bb1 commit dd18e5a
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 75 deletions.
12 changes: 0 additions & 12 deletions examples/all-clusters-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#include "AppOptions.h"
#include "binding-handler.h"

#include <app/util/endpoint-config-api.h>
#include <lib/support/logging/CHIPLogging.h>

// Network commissioning
namespace {
constexpr chip::EndpointId kNetworkCommissioningEndpointSecondary = 0xFFFE;
Expand All @@ -36,15 +33,6 @@ int main(int argc, char * argv[])

LinuxDeviceOptions::GetInstance().dacProvider = AppOptions::GetDACProvider();

// TODO(#34374): Remove this when Darwin tests are more reliable.
chip::EndpointId kSwitchEndpoint = 3u;

emberAfEndpointEnableDisable(kSwitchEndpoint, false);
#if !defined(__APPLE__)
ChipLogProgress(NotSpecified, "Enabling the switch endpoint.");
emberAfEndpointEnableDisable(kSwitchEndpoint, true);
#endif

ChipLinuxAppMainLoop();

return 0;
Expand Down
Loading

0 comments on commit dd18e5a

Please sign in to comment.