Skip to content

Commit fa70ff3

Browse files
committed
Add debug log to investigate intermittent test failure in CI
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
1 parent 314bb5c commit fa70ff3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/common/protocol_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8563,7 +8563,9 @@ func TestPerUserTransferLimits(t *testing.T) {
85638563
u := getTestUser()
85648564
u.UploadBandwidth = 32
85658565
user, _, err := httpdtest.AddUser(u, http.StatusCreated)
8566-
assert.NoError(t, err)
8566+
if !assert.NoError(t, err) {
8567+
printLatestLogs(20)
8568+
}
85678569
conn, client, err := getSftpClient(user)
85688570
if assert.NoError(t, err) {
85698571
defer conn.Close()

0 commit comments

Comments
 (0)