Skip to content

Commit

Permalink
Fix go vet error (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored May 12, 2023
1 parent 46899ad commit 6365dfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Go vet
run: go vet ./...
- name: Test
run: |
# Start mock s3 service
Expand Down
6 changes: 3 additions & 3 deletions s3sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -481,7 +481,7 @@ func TestDryRun(t *testing.T) {
t.Error("File must not be downloaded on dry-run")
}
stats := m.GetStatistics()
if !reflect.DeepEqual(stats, SyncStatistics{}) {
if !reflect.DeepEqual(&stats, &SyncStatistics{}) {
t.Error("Statistics must not change on a dry-run")
}

Expand Down Expand Up @@ -528,7 +528,7 @@ func TestDryRun(t *testing.T) {
t.Error("Unexpected key", objs[0].path)
}
stats := m.GetStatistics()
if !reflect.DeepEqual(stats, SyncStatistics{}) {
if !reflect.DeepEqual(&stats, &SyncStatistics{}) {
t.Error("Statistics must not change on a dry-run")
}
})
Expand Down

0 comments on commit 6365dfe

Please sign in to comment.