diff --git a/server/runner/mini/mini.go b/server/runner/mini/mini.go index 4308b58..b82adff 100644 --- a/server/runner/mini/mini.go +++ b/server/runner/mini/mini.go @@ -145,81 +145,6 @@ func (r *Runner) Start() error { logErr(historyStore.Add(sch2.Name(), genRandVersions(schs[100:150])...)) logErr(historyStore.Add(sch3.Name(), genRandVersions(schs[200:250])...)) - jsonStr := - `[ - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }, - { - "firstName": "Joe", - "lastName": "Lafrite", - "status": "fried", - "creationDate": "2018-05-06T08:00:00Z" - }]` - jsonMsg := schs[0] - jsonMsg.Key = []byte("target-id-json") - jsonMsg.Value = []byte(jsonStr) - logErr(liveStore.Add(sch1.Name(), jsonMsg)) - logErr(coldStore.Add(sch1.Name(), jsonMsg)) - logErr(historyStore.Add(sch1.Name(), jsonMsg)) - srv := runner.NewServer(coldDB, liveDB, historyDB, resolver) helper.StartupHTTPServer(srv)