test: authenticate student tests with session tokens

This commit is contained in:
kk10
2026-10-05 13:42:00 +03:00
parent 385a8c0312
commit 79036b0f18
3 changed files with 45 additions and 26 deletions
+1 -1
View File
@@ -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