From 7aaf95897d9145977c1f14753a1354b5805385f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flc=E3=82=9B?= Date: Wed, 10 Jan 2024 11:10:17 +0800 Subject: [PATCH] test(sms): Increased unit test coverage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Flcă‚› --- sms/mitake/provider_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sms/mitake/provider_test.go b/sms/mitake/provider_test.go index 210d630c..612e222e 100644 --- a/sms/mitake/provider_test.go +++ b/sms/mitake/provider_test.go @@ -38,12 +38,13 @@ func TestProvider(t *testing.T) { t.Fatal("smbody error") } - w.Write([]byte("")) //nolint:errcheck + w.Write([]byte("hello")) //nolint:errcheck })) defer srv.Close() p := New(username, password, WithAPI(srv.URL), + WithHTTPClient(http.DefaultClient), ) err := p.Send(context.Background(), &sms.Phone{