Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit701246a

Browse files
committed
Fix tests
1 parent20790fc commit701246a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎scaletest/smtpmock/server_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestServer_SendAndReceiveEmail(t *testing.T) {
6060
returnsrv.MessageCount()==1
6161
},testutil.WaitShort,testutil.IntervalMedium)
6262

63-
url:=fmt.Sprintf("http://%s/messages",srv.APIAddress())
63+
url:=fmt.Sprintf("%s/messages",srv.APIAddress())
6464
req,err:=http.NewRequestWithContext(ctx,http.MethodGet,url,nil)
6565
require.NoError(t,err)
6666

@@ -102,7 +102,7 @@ func TestServer_FilterByEmail(t *testing.T) {
102102
returnsrv.MessageCount()==2
103103
},testutil.WaitShort,testutil.IntervalMedium)
104104

105-
url:=fmt.Sprintf("http://%s/messages?email=admin@coder.com",srv.APIAddress())
105+
url:=fmt.Sprintf("%s/messages?email=admin@coder.com",srv.APIAddress())
106106
req,err:=http.NewRequestWithContext(ctx,http.MethodGet,url,nil)
107107
require.NoError(t,err)
108108

@@ -142,7 +142,7 @@ func TestServer_NotificationID(t *testing.T) {
142142
returnsrv.MessageCount()==1
143143
},testutil.WaitShort,testutil.IntervalMedium)
144144

145-
url:=fmt.Sprintf("http://%s/messages",srv.APIAddress())
145+
url:=fmt.Sprintf("%s/messages",srv.APIAddress())
146146
req,err:=http.NewRequestWithContext(ctx,http.MethodGet,url,nil)
147147
require.NoError(t,err)
148148

@@ -179,7 +179,7 @@ func TestServer_Purge(t *testing.T) {
179179
returnsrv.MessageCount()==1
180180
},testutil.WaitShort,testutil.IntervalMedium)
181181

182-
url:=fmt.Sprintf("http://%s/purge",srv.APIAddress())
182+
url:=fmt.Sprintf("%s/purge",srv.APIAddress())
183183
req,err:=http.NewRequestWithContext(ctx,http.MethodPost,url,nil)
184184
require.NoError(t,err)
185185

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp