Skip to content

Commit

Permalink
Fix test - you need an exported field to unmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
c2h5oh committed Dec 5, 2018
1 parent d7a3cc2 commit 07a85c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bond_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func TestSlices(t *testing.T) {

func TestSelectOnlyIDs(t *testing.T) {
var ids []struct {
id int64 `db:"id"`
Id int64 `db:"id"`
}
err := DB.Account.Find(db.Cond{}).Select("id").All(&ids)
assert.NoError(t, err)
Expand Down

0 comments on commit 07a85c1

Please sign in to comment.