diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-02-04 21:48:05 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-02-04 21:48:05 +0100 |
| commit | 439655852e6b136b3a4793c8c3b062c4366e1149 (patch) | |
| tree | 604e9359f353d36c7756f8c3064104299b1c168d /account_test.go | |
| parent | c2f6d1d6fb9a0dac7f7c5d871ed5237b02cc5196 (diff) | |
| download | go-schwift-439655852e6b136b3a4793c8c3b062c4366e1149.tar.gz | |
use dedicated Metadata type instead of http.Header
Diffstat (limited to 'account_test.go')
| -rw-r--r-- | account_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/account_test.go b/account_test.go index 7a07fa4..da49a8c 100644 --- a/account_test.go +++ b/account_test.go @@ -19,7 +19,6 @@ package schwift import ( - "net/http" "testing" ) @@ -40,7 +39,7 @@ func TestAccountBasic(t *testing.T) { func TestAccountMetadata(t *testing.T) { testWithAccount(t, func(a *Account) { err := a.Post(AccountHeaders{ - Metadata: http.Header{"Schwift-Test": {"first"}}, + Metadata: NewMetadata("schwift-test", "first"), }, nil) if !expectError(t, err, nil) { t.FailNow() |
