Skip to content

Commit 59cafd7

Browse files
committed
Fix assertion on TopiCreateTimeStamp in TestGetStatsCmd
1 parent 1b75d0a commit 59cafd7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/ctl/topic/stats_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ func TestGetStatsCmd(t *testing.T) {
5252
if err != nil {
5353
t.Fatal(err)
5454
}
55+
assert.Greaterf(t, stats.TopicCreationTimeStamp, int64(0), "TopicCreationTimeStamp should be greater than 0")
56+
stats.TopicCreationTimeStamp = 0 // reset to zero for comparison
5557

5658
assert.Equal(t, defaultStats, stats)
5759
}

scripts/run-integration-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
readonly PROJECT_ROOT=`cd $(dirname $0)/..; pwd`
55
readonly IMAGE_NAME=pulsarctl-test
6-
readonly PULSAR_DEFAULT_VERSION="4.0.4.3"
6+
readonly PULSAR_DEFAULT_VERSION="4.1.0.10"
77
readonly PULSAR_VERSION=${PULSAR_VERSION:-${PULSAR_DEFAULT_VERSION}}
88

99
docker build --build-arg PULSAR_VERSION=${PULSAR_VERSION} \

0 commit comments

Comments
 (0)