Fix failed test in store.

This commit is contained in:
Qi Xiao 2016-02-13 01:08:59 +01:00
parent 90ab0ee6c2
commit bf4264ea7f

View File

@ -57,7 +57,7 @@ func TestCmd(t *testing.T) {
f = tStore.FirstCmd
fname = "tStore.FirstCmd"
}
seq, cmd, err := f(tt.seq, tt.prefix)
seq, cmd, err := f(tt.seq, tt.prefix, true)
if seq != tt.wantedSeq || cmd != tt.wantedCmd || err != tt.wantedErr {
t.Errorf("%s(%v, %v) => (%v, %v, %v), want (%v, %v, %v)",
fname, tt.seq, tt.prefix,