tdd is fun sometimes

main
bel 2023-11-05 21:40:01 -07:00
parent 5e7381c04b
commit 6d6df1da80
1 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,17 @@ func TestReplicatorStream(t *testing.T) {
}
},
},
"one during op moves": {
during: func(t *testing.T, r Replicator) {
r.Src.Set(nil, key, value, version)
time.Sleep(time.Millisecond * 200)
},
after: func(t *testing.T, r Replicator) {
if got, _ := r.Dest.Get(nil, key); !got.Version.Equal(version) || !got.Value.Equal(value) {
t.Error(got)
}
},
},
}
for name, d := range cases {