Skip to content

Commit

Permalink
fix ci error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizeng committed Jan 17, 2016
1 parent a494479 commit 296e4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/mongo/recorder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestRecorder(t *testing.T) {

subdatas = append(subdatas, subdata)

data := rpcs.ArgsPutData{
data := rpcs.ArgsOnStatus{
DeviceId: deviceid,
Timestamp: timestamp,
Subdata: subdatas,
Expand All @@ -43,7 +43,7 @@ func TestRecorder(t *testing.T) {
t.Error(err)
}

readData := rpcs.ArgsPutData{}
readData := rpcs.ArgsOnStatus{}
err = r.FindLatest(deviceid, &readData)

if err != nil {
Expand All @@ -54,7 +54,7 @@ func TestRecorder(t *testing.T) {
t.Errorf("read data want %v, but got %v", data, readData)
}

readDatas := []rpcs.ArgsPutData{}
readDatas := []rpcs.ArgsOnStatus{}
err = r.FindByTimestamp(deviceid, timestamp, timestamp, &readDatas)
t.Log(readDatas)
if !reflect.DeepEqual(data, readDatas[0]) {
Expand Down

0 comments on commit 296e4ad

Please sign in to comment.