mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
use the new atomic types introduced in Go 1.19
we depend on Go 1.19 anyway Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1785,7 +1785,7 @@ func TestUploadError(t *testing.T) {
|
||||
if assert.Error(t, transfer.ErrTransfer) {
|
||||
assert.EqualError(t, transfer.ErrTransfer, errFake.Error())
|
||||
}
|
||||
assert.Equal(t, int64(0), transfer.BytesReceived)
|
||||
assert.Equal(t, int64(0), transfer.BytesReceived.Load())
|
||||
|
||||
assert.NoFileExists(t, testfile)
|
||||
assert.NoFileExists(t, fileTempName)
|
||||
|
||||
Reference in New Issue
Block a user