Skip to content

Commit

Permalink
Resolve order issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored and fasmat committed Dec 10, 2021
1 parent bf0ffb2 commit 20bb080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pop_test.go
Expand Up @@ -307,7 +307,7 @@ type Hop struct {
ID uuid.UUID `json:"id" db:"id"`
NetClient *NetClient `json:"net_client" belongs_to:"net_client" fk_id:"NetClientID"`
NetClientID uuid.UUID `json:"net_client_id" db:"net_client_id"`
Server *Server `json:"course" belongs_to:"server" fk_id:"ServerID"`
Server *Server `json:"course" belongs_to:"server" fk_id:"ServerID" oder_by:"id asc"`
ServerID uuid.NullUUID `json:"server_id" db:"server_id"`
}

Expand Down
2 changes: 1 addition & 1 deletion preload_associations_test.go
Expand Up @@ -158,7 +158,7 @@ func Test_New_Implementation_For_Nplus1_With_NullUUIDs_And_FK_ID(t *testing.T) {
// "created_at": "0001-01-01T00:00:00Z",
// "updated_at": "0001-01-01T00:00:00Z"
// },
a.NotNil(expected.Hops[0].Server)
a.NotNil(expected.Hops[0].Server, "%+v", expected.Hops[0])
a.Nil(expected.Hops[1].Server)
})
}
Expand Down

0 comments on commit 20bb080

Please sign in to comment.