Skip to content

Commit

Permalink
fix ftp detector test
Browse files Browse the repository at this point in the history
  • Loading branch information
abmussani committed Dec 11, 2024
1 parent 7f9c17d commit 329dac1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/detectors/ftp/ftp_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,15 @@ func TestFTP_FromChunk(t *testing.T) {
data: []byte("ftp://abc:[email protected]/pub/FreeBSD/doc/tr/articles/explaining-bsd/explaining-bsd_tr.pdf"),
verify: true,
},
wantErr: false,
want: []detectors.Result{
{
DetectorType: detectorspb.DetectorType_FTP,
Verified: false,
Redacted: "ftp://abc:********@ftp.freebsd.org",
},
},
wantErr: false,
wantVerificationErr: true,
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 329dac1

Please sign in to comment.