Skip to content

Commit b29cc11

Browse files
committed
Add doc to WillReturn
1 parent 3ff33d4 commit b29cc11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/messagebirdtest/test_server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ func closeServer() {
6161
server.Close()
6262
}
6363

64+
// WillReturn sets the response body (b) and status (s) to be returned by the
65+
// server for incoming requests. These can be used by tests to assert
66+
// unmarshalling responses works as intended.
6467
func WillReturn(b []byte, s int) {
6568
responseBody = b
6669
status = s

0 commit comments

Comments
 (0)