Merge pull request #13804 from endocrimes/dani/watch-fix

integration/client/watch.TestWatchCancelRunning: remove duplicate setup
This commit is contained in:
Marek Siarkowicz 2022-03-16 15:43:35 +01:00 committed by GitHub
commit a1f24af310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,8 +299,6 @@ func TestWatchCancelRunning(t *testing.T) {
}
func testWatchCancelRunning(t *testing.T, wctx *watchctx) {
integration2.BeforeTest(t)
ctx, cancel := context.WithCancel(context.Background())
if wctx.ch = wctx.w.Watch(ctx, "a"); wctx.ch == nil {
t.Fatalf("expected non-nil watcher channel")