genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0

[Fix]: Next try to fix Build error

This commit is contained in:
mlabusch 2017-05-05 10:56:03 +02:00
parent c9e944d9f3
commit 563f49c282
4 changed files with 4 additions and 14 deletions

View File

@ -20,19 +20,19 @@ func TestProductExists(t *testing.T) {
} }
go srv.ListenAndServe() go srv.ListenAndServe()
ok, err := ProductExists(6) ok, err := ProductExists(3)
assert.True(ok) assert.True(ok)
assert.NoError(err) assert.NoError(err)
// test cache // test cache
ok, err = ProductExists(6) ok, err = ProductExists(3)
assert.True(ok) assert.True(ok)
assert.NoError(err) assert.NoError(err)
productExistCache = make(map[int64]boolMicroServiceCache) productExistCache = make(map[int64]boolMicroServiceCache)
ProductURL = "http://localhost:8081/api-test/product/%d/" ProductURL = "http://localhost:8081/api-test/product/%d/"
ok, err = ProductExists(6) ok, err = ProductExists(3)
assert.Error(err) assert.Error(err)
srv.Close() srv.Close()

View File

@ -1,4 +0,0 @@
{
"id": 5,
"title": "Kiki"
}

View File

@ -1,4 +0,0 @@
{
"id": 6,
"title": "Cherry"
}

View File

@ -2,7 +2,5 @@
{"id":1, "title": "Apple"}, {"id":1, "title": "Apple"},
{"id":2, "title": "Pear"}, {"id":2, "title": "Pear"},
{"id":3, "title": "Strawberry"}, {"id":3, "title": "Strawberry"},
{"id":4, "title": "Blueberry"}, {"id":4, "title": "Blueberry"}
{"id":5, "title": "Kiki"},
{"id":6, "title": "Cherry"}
] ]