]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/files_test.go
Fix tracker results
[rbdr/mobius] / hotline / files_test.go
index 4c8ef80fd42a8a6e439bc0b353137a43ae78f0c5..0a7eb7b5537b4e44165d6a379d8e6d4af98b1f0d 100644 (file)
@@ -3,9 +3,9 @@ package hotline
 import (
        "bytes"
        "encoding/binary"
+       "github.com/stretchr/testify/assert"
        "os"
        "path/filepath"
-       "reflect"
        "testing"
 )
 
@@ -77,7 +77,7 @@ func TestCalcTotalSize(t *testing.T) {
                                t.Errorf("CalcTotalSize() error = %v, wantErr %v", err, tt.wantErr)
                                return
                        }
-                       if !reflect.DeepEqual(got, tt.want) {
+                       if !assert.Equal(t, tt.want, got) {
                                t.Errorf("CalcTotalSize() got = %v, want %v", got, tt.want)
                        }
                })