@@ -1097,7 +1097,7 @@ TEST_CASE("audit management", "[sync][pbs][audit]") {
10971097 " Audit partition prefix must not be empty" );
10981098 config.audit_config ->partition_value_prefix = " /audit" ;
10991099 REQUIRE_EXCEPTION (Realm::get_shared_realm (config), InvalidName,
1100- " Invalid audit parition prefix '/audit': prefix must not contain slashes" );
1100+ " Invalid audit partition prefix '/audit': prefix must not contain slashes" );
11011101 }
11021102 SECTION (" invalid metadata" ) {
11031103 config.audit_config ->metadata = {{" " , " a" }};
@@ -1881,11 +1881,11 @@ TEST_CASE("audit integration tests", "[sync][pbs][audit][baas]") {
18811881 }
18821882
18831883 SECTION (" flexible sync" ) {
1884- app::FLXSyncTestHarness harness (" audit" );
1884+ app::FLXSyncTestHarness harness (" audit" , {schema} );
18851885 create_user_and_log_in (harness.app ());
18861886
18871887 SECTION (" auditing a flexible sync realm without specifying an audit user throws an exception" ) {
1888- SyncTestFile config (harness.app ()->current_user (), {} , SyncConfig::FLXSyncEnabled{});
1888+ SyncTestFile config (harness.app ()->current_user (), schema , SyncConfig::FLXSyncEnabled{});
18891889 config.audit_config = std::make_shared<AuditConfig>();
18901890 REQUIRE_THROWS_CONTAINING (Realm::get_shared_realm (config), " partition-based sync" );
18911891 }
@@ -1904,6 +1904,7 @@ TEST_CASE("audit integration tests", "[sync][pbs][audit][baas]") {
19041904 config.sync_config ->user = harness.app ()->current_user ();
19051905 config.sync_config ->flx_sync_requested = true ;
19061906 config.sync_config ->partition_value .clear ();
1907+ config.schema_version = 0 ;
19071908
19081909 auto realm = Realm::get_shared_realm (config);
19091910 {
0 commit comments