diff options
| author | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-10-26 15:23:04 +0200 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-10-28 12:55:16 +0200 |
| commit | 8b38a040830109f19550e7329b82ec5caf76b321 (patch) | |
| tree | 13ecc54219914102f69fb59e005a836a88f78f5c /tests/field_test.go | |
| parent | 4f67f4c0a59a850321b37a154efc9bde60539ca8 (diff) | |
| download | go-schwift-8b38a040830109f19550e7329b82ec5caf76b321.tar.gz | |
Fix linting errors
Diffstat (limited to 'tests/field_test.go')
| -rw-r--r-- | tests/field_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/field_test.go b/tests/field_test.go index c8dcf7f..cd27c99 100644 --- a/tests/field_test.go +++ b/tests/field_test.go @@ -70,7 +70,7 @@ func TestFieldTimestamp(t *testing.T) { expectBool(t, hdr.CreatedAt().Exists(), true) actual := float64(hdr.CreatedAt().Get().UnixNano()) / 1e9 - expected, _ := strconv.ParseFloat(hdr.Headers["X-Timestamp"], 64) + expected, _ := strconv.ParseFloat(hdr.Headers["X-Timestamp"], 64) //nolint:errcheck expectFloat64(t, actual, expected) }) @@ -100,7 +100,7 @@ func TestFieldHTTPTimestamp(t *testing.T) { expectBool(t, hdr.UpdatedAt().Exists(), true) actual := hdr.UpdatedAt().Get() - expected, _ := http.ParseTime(hdr.Get("Last-Modified")) + expected, _ := http.ParseTime(hdr.Get("Last-Modified")) //nolint:errcheck expectInt64(t, actual.Unix(), expected.Unix()) }) |
