Fix compilation error in events/events_test.go

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2016-12-15 15:53:16 +00:00
parent b1f9f5e033
commit cd26bbe7c1
1 changed files with 4 additions and 4 deletions

View File

@ -12,19 +12,19 @@ func TestBasicEvent(t *testing.T) {
// simulate a layer pull with events
ctx, commit, _ := WithTx(ctx)
G(ctx).Post("pull ubuntu")
G(ctx).Post(ctx, "pull ubuntu")
for layer := 0; layer < 4; layer++ {
// make a subtransaction for each layer
ctx, commit, _ := WithTx(ctx)
G(ctx).Post(fmt.Sprintf("fetch layer %v", layer))
G(ctx).Post(ctx, fmt.Sprintf("fetch layer %v", layer))
ctx = WithTopic(ctx, "content")
// simulate sub-operations with a separate topic, on the content store
G(ctx).Post(fmt.Sprintf("received sha:256"))
G(ctx).Post(ctx, fmt.Sprintf("received sha:256"))
G(ctx).Post(fmt.Sprintf("unpack layer %v", layer))
G(ctx).Post(ctx, fmt.Sprintf("unpack layer %v", layer))
commit()
}