Browse Source

Add debug log to investigate intermittent test failure in CI

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 3 weeks ago
parent
commit
fa70ff35c4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      internal/common/protocol_test.go

+ 3 - 1
internal/common/protocol_test.go

@@ -8563,7 +8563,9 @@ func TestPerUserTransferLimits(t *testing.T) {
 	u := getTestUser()
 	u.UploadBandwidth = 32
 	user, _, err := httpdtest.AddUser(u, http.StatusCreated)
-	assert.NoError(t, err)
+	if !assert.NoError(t, err) {
+		printLatestLogs(20)
+	}
 	conn, client, err := getSftpClient(user)
 	if assert.NoError(t, err) {
 		defer conn.Close()