Skip to content

Commit c64590e

Browse files
committed
Fix pipeline: proper import path
1 parent e0b91db commit c64590e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

group/group_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/messagebird/go-rest-api/mbtest"
8+
"github.com/messagebird/go-rest-api/internal/mbtest"
99
)
1010

1111
func TestMain(m *testing.M) {
@@ -22,7 +22,7 @@ func TestCreate(t *testing.T) {
2222
}
2323

2424
mbtest.AssertEndpointCalled(t, http.MethodPost, "/groups")
25-
mbtest.AssertTestdata(t, "groupRequestCreateObject.json", messagebirdtest.Request.Body)
25+
mbtest.AssertTestdata(t, "groupRequestCreateObject.json", mbtest.Request.Body)
2626

2727
if group.Name != "Friends" {
2828
t.Fatalf("expected Friends, got %s", group.Name)
@@ -158,7 +158,7 @@ func TestUpdate(t *testing.T) {
158158
}
159159

160160
mbtest.AssertEndpointCalled(t, http.MethodPatch, "/groups/group-id")
161-
mbtest.AssertTestdata(t, "groupRequestUpdateObject.json", messagebirdtest.Request.Body)
161+
mbtest.AssertTestdata(t, "groupRequestUpdateObject.json", mbtest.Request.Body)
162162
}
163163

164164
func TestAddContacts(t *testing.T) {
@@ -172,7 +172,7 @@ func TestAddContacts(t *testing.T) {
172172
mbtest.AssertEndpointCalled(t, http.MethodGet, "/groups/group-id/contacts")
173173

174174
if mbtest.Request.URL.RawQuery != "_method=PUT&ids[]=first-contact-id&ids[]=second-contact-id" {
175-
t.Fatalf("expected _method=PUT&ids[]=first-contact-id&ids[]=second-contact-id, got %s", messagebirdtest.Request.URL.RawQuery)
175+
t.Fatalf("expected _method=PUT&ids[]=first-contact-id&ids[]=second-contact-id, got %s", mbtest.Request.URL.RawQuery)
176176
}
177177
}
178178

0 commit comments

Comments
 (0)