Skip to content

Commit 9c4dc97

Browse files
committed
create if needed instance in fixture
1 parent 7a747ec commit 9c4dc97

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/viam/sdk/tests/test_utils.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@
1313
namespace viam {
1414
namespace sdktests {
1515

16+
struct GlobalFixture {
17+
GlobalFixture() {
18+
(void)sdk::Instance::current(sdk::Instance::Creation::if_needed);
19+
}
20+
};
21+
22+
BOOST_TEST_GLOBAL_FIXTURE(GlobalFixture);
23+
1624
using namespace viam::sdk;
17-
BOOST_TEST_GLOBAL_FIXTURE(Instance);
1825

1926
ProtoStruct fake_map();
2027
std::vector<GeometryConfig> fake_geometries();

0 commit comments

Comments
 (0)