Skip to content

Commit 491f8f1

Browse files
committed
fix sentinal file
1 parent 844548e commit 491f8f1

File tree

1 file changed

+3
-8
lines changed
  • libsql-server/tests/embedded_replica

1 file changed

+3
-8
lines changed

libsql-server/tests/embedded_replica/mod.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ fn replicated_return() {
12921292

12931293
drop(fut);
12941294

1295-
tokio::fs::File::create(path.join(".sentinel"))
1295+
tokio::fs::File::create(path.join("dbs").join("default").join(".sentinel"))
12961296
.await
12971297
.unwrap();
12981298

@@ -1305,15 +1305,10 @@ fn replicated_return() {
13051305
});
13061306

13071307
sim.client("client", async move {
1308-
let client = Client::new();
1309-
client
1310-
.post("http://primary:9090/v1/namespaces/foo/create", json!({}))
1311-
.await?;
1312-
13131308
let path = tmp_embedded_path.join("embedded");
13141309
let db = Database::open_with_remote_sync_connector(
13151310
path.to_str().unwrap(),
1316-
"http://foo.primary:8080",
1311+
"http://primary:8080",
13171312
"",
13181313
TurmoilConnector,
13191314
false,
@@ -1350,7 +1345,7 @@ fn replicated_return() {
13501345

13511346
let rep = db.sync().await.unwrap();
13521347
assert_eq!(rep.frame_no(), Some(4));
1353-
assert_eq!(rep.start_frame_no(), Some(4));
1348+
assert_eq!(rep.start_frame_no(), Some(1));
13541349

13551350
Ok(())
13561351
});

0 commit comments

Comments
 (0)