Skip to content

Commit

Permalink
update Makefile (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
chensheng0 authored Oct 15, 2020
1 parent 18bf409 commit 61f7b7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PLATFORM_ALL:=darwin/amd64 linux/amd64 linux/arm64 linux/arm/v7

export DOCKER_CLI_EXPERIMENTAL=enabled

GIT_TAG:=$(shell git tag --contains HEAD)
GIT_TAG:=$(shell git tag --contains HEAD|awk 'END {print}')
GIT_REV:=git-$(shell git rev-parse --short HEAD)
VERSION:=$(if $(GIT_TAG),$(GIT_TAG),$(GIT_REV))
ifeq ($(findstring race,$(BUILD_ARGS)),race)
Expand Down
8 changes: 4 additions & 4 deletions rule/ruler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ rules:
defer cli12.close()

// ensure client of rule connected successfully
time.Sleep(time.Second)
time.Sleep(2 * time.Second)

fmt.Println("--> all clients init successfully <--")

Expand Down Expand Up @@ -508,7 +508,7 @@ rules:
assert.NoError(t, err)
defer cli2.close()

time.Sleep(time.Second)
time.Sleep(2 * time.Second)

// test rule1
msg := `{"name":"topic1"}`
Expand Down Expand Up @@ -627,7 +627,7 @@ func (c *mqttClient) assertS2CPacket(expect string) {
case pkt := <-c.s2c:
assert.NotNil(c.t, pkt)
assert.Equal(c.t, expect, pkt.String())
case <-time.After(time.Second):
case <-time.After(2 * time.Second):
assert.Fail(c.t, "receive common timeout")
}
}
Expand All @@ -636,7 +636,7 @@ func (c *mqttClient) assertS2CPacketTimeout() {
select {
case pkt := <-c.s2c:
assert.Fail(c.t, "receive unexpected packet:", pkt.String())
case <-time.After(time.Second):
case <-time.After(2 * time.Second):
}
}

Expand Down

0 comments on commit 61f7b7e

Please sign in to comment.