From d2b912a2b169aebd37a7b5d796a386400d90c343 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Tue, 18 Apr 2023 13:07:49 +0300 Subject: [PATCH] test: fix test --- tg_io/download_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tg_io/download_test.go b/tg_io/download_test.go index 3453dce..5a535ac 100644 --- a/tg_io/download_test.go +++ b/tg_io/download_test.go @@ -162,5 +162,5 @@ func TestE2E(t *testing.T) { run := func(ctx context.Context) error { return client.Run(ctx, handler) } - require.ErrorIs(t, floodWaiter.Run(ctx, run), context.Canceled) + require.NoError(t, floodWaiter.Run(ctx, run)) }