Skip to content

Commit

Permalink
fix type conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
arnecls committed Sep 12, 2019
1 parent 10d057c commit 7b656c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions format/hostname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestFormatterHostnameTarget(t *testing.T) {
expect.NoError(err)

hostname, _ := os.Hostname()
val, err := msg.GetMetadata().Bytes("foo")
val, err := msg.GetMetadata().String("foo")
expect.NoError(err)
expect.Equal(hostname, string(val))
expect.Equal(hostname, val)
}

0 comments on commit 7b656c0

Please sign in to comment.