Skip to content

Commit 6c22faa

Browse files
committed
Merge branch 'v5_staging' into use-testdata
2 parents d0dadff + c5bf92b commit 6c22faa

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
const (
2727
// ClientVersion is used in User-Agent request header to provide server with API level.
28-
ClientVersion = "4.2.1"
28+
ClientVersion = "5.0.0"
2929

3030
// Endpoint points you to MessageBird REST API.
3131
Endpoint = "https://rest.messagebird.com"

internal/messagebirdtest/test_client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (w testWriter) Write(p []byte) (int, error) {
2424

2525
// Client initializes a new MessageBird client that uses the
2626
func Client(t *testing.T) *messagebird.Client {
27-
return client(t, "test_gshuPaZoeEG6ovbc8M79w0QyM")
27+
return client(t, "")
2828
}
2929

3030
func client(t *testing.T, accessKey string) *messagebird.Client {
@@ -42,10 +42,11 @@ func client(t *testing.T, accessKey string) *messagebird.Client {
4242
HTTPClient: &http.Client{
4343
Transport: transport,
4444
},
45-
DebugLog: log.New(testWriter{t: t}, "", 0),
45+
DebugLog: testLogger(t),
4646
}
4747
}
4848

49+
// testLogger creates a new logger that writes to the test's output.
4950
func testLogger(t *testing.T) *log.Logger {
5051
return log.New(testWriter{t: t}, "", 0)
5152
}

internal/messagebirdtest/test_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ func WillReturnAccessKeyError() {
5959
}
6060
]
6161
}`)
62-
status = 405
62+
status = 401
6363
}

0 commit comments

Comments
 (0)