chore: fix oplog tests

This commit is contained in:
garethgeorge
2024-09-09 00:40:14 -07:00
parent 6894128d90
commit ca678d9495
4 changed files with 51 additions and 23 deletions

View File

@@ -790,7 +790,10 @@ func createSystemUnderTest(t *testing.T, config config.ConfigStore) systemUnderT
t.Fatalf("Failed to create oplog store: %v", err)
}
t.Cleanup(func() { opstore.Close() })
oplog := oplog.NewOpLog(opstore)
oplog, err := oplog.NewOpLog(opstore)
if err != nil {
t.Fatalf("Failed to create oplog: %v", err)
}
logStore, err := logwriter.NewLogManager(dir+"/log", 10)
if err != nil {
t.Fatalf("Failed to create log store: %v", err)