I read the code in gosky:
https://github.com/skydb/gosky
I run the
in the gosky directory.
But it failed with many errors.
I attempt to make some changes in client_test.go and it worked now.
But I can't make the table_test.go work.
It output like this:
FAIL: TestTableDeleteEvent (0.00 seconds)
Location: table_test.go:110
Error: Expected nil, but got: &sky.Event{Timestamp:time.Time{sec:63524131201, nsec:0x0, loc:(*time.Location)(0x5771c0)}, Data:map[string]interface {}{}}
--- FAIL: TestTableQuery (0.05 seconds)
Location: table_test.go:128
Error: Expected nil, but got: &errors.errorString{s:"Malformed json request."}
Messages: No error is expected but got Malformed json request.
Location: table_test.go:129
Error: Expected not to be nil.
I fount that, in servlet.go, when the sky server insert a new event with appendEvent method, it will add a state in the data,
but when delete event with DeleteEvent method, it has no state, so the delete doesn't work.
Does this test work in you guys' pc or it's just mine issue?