UniStore: Test both Mode1 and Mode2 for LegacyToUnifiedStorage Syncer (#94784)

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
pull/94796/head
maicon 9 months ago committed by GitHub
parent a5022d9dc6
commit 9dc2ccdbfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/apiserver/rest/dualwriter_syncer_test.go

@ -225,7 +225,7 @@ func TestLegacyToUnifiedStorage_DataSyncer(t *testing.T) {
tt.setupStorageFn(um)
}
outcome, err := legacyToUnifiedStorageDataSyncer(context.Background(), Mode1, ls, us, "test.kind", p, &fakeServerLock{}, &request.RequestInfo{})
outcome, err := legacyToUnifiedStorageDataSyncer(context.Background(), Mode2, ls, us, "test.kind", p, &fakeServerLock{}, &request.RequestInfo{})
if tt.wantErr {
assert.Error(t, err)
return

Loading…
Cancel
Save