[Fix]: Next try to fix Build error
This commit is contained in:
parent
c9e944d9f3
commit
563f49c282
|
@ -20,19 +20,19 @@ func TestProductExists(t *testing.T) {
|
|||
}
|
||||
go srv.ListenAndServe()
|
||||
|
||||
ok, err := ProductExists(6)
|
||||
ok, err := ProductExists(3)
|
||||
assert.True(ok)
|
||||
assert.NoError(err)
|
||||
|
||||
// test cache
|
||||
ok, err = ProductExists(6)
|
||||
ok, err = ProductExists(3)
|
||||
assert.True(ok)
|
||||
assert.NoError(err)
|
||||
|
||||
productExistCache = make(map[int64]boolMicroServiceCache)
|
||||
ProductURL = "http://localhost:8081/api-test/product/%d/"
|
||||
|
||||
ok, err = ProductExists(6)
|
||||
ok, err = ProductExists(3)
|
||||
assert.Error(err)
|
||||
|
||||
srv.Close()
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"id": 5,
|
||||
"title": "Kiki"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"id": 6,
|
||||
"title": "Cherry"
|
||||
}
|
|
@ -2,7 +2,5 @@
|
|||
{"id":1, "title": "Apple"},
|
||||
{"id":2, "title": "Pear"},
|
||||
{"id":3, "title": "Strawberry"},
|
||||
{"id":4, "title": "Blueberry"},
|
||||
{"id":5, "title": "Kiki"},
|
||||
{"id":6, "title": "Cherry"}
|
||||
{"id":4, "title": "Blueberry"}
|
||||
]
|
||||
|
|
Reference in New Issue