forked from mtusi2026/mtusi2026lab2
test: authenticate student tests with session tokens
This commit is contained in:
@@ -70,7 +70,7 @@ func TestConcurrentMessages(t *testing.T) {
|
||||
seen := make(map[string]bool, total)
|
||||
|
||||
path := "/api/v1/chats/" + chat.ID.String() + "/messages?limit=100"
|
||||
resp := doRequest(t, http.MethodGet, path, user1.ID, nil)
|
||||
resp := doRequest(t, http.MethodGet, path, user1.Token, nil)
|
||||
requireStatus(t, resp, http.StatusOK)
|
||||
|
||||
var page dto.MessagePageResponse
|
||||
|
||||
Reference in New Issue
Block a user