fix: refresh mutations and defer busy quit
This commit is contained in:
@@ -104,8 +104,8 @@ func TestApplicationReloadsStateAfterCommittedDurabilityError(t *testing.T) {
|
||||
if !errors.As(result.Err, &committed) {
|
||||
t.Fatalf("mutation error = %v, want committed durability error", result.Err)
|
||||
}
|
||||
if store.loadCalls != 2 {
|
||||
t.Fatalf("Load calls = %d, want startup plus post-commit reload", store.loadCalls)
|
||||
if store.loadCalls != 3 {
|
||||
t.Fatalf("Load calls = %d, want startup, pre-mutation, and post-commit reloads", store.loadCalls)
|
||||
}
|
||||
if len(result.Snapshot.Profiles) != 1 || result.Snapshot.Profiles[0].Name != "committed" {
|
||||
t.Fatalf("Application snapshot after committed error = %#v", result.Snapshot)
|
||||
|
||||
Reference in New Issue
Block a user