Skip to content

Commit f3d0307

Browse files
committed
...
1 parent f7c948e commit f3d0307

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monitor_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestMonitor_Cluster_GetStatus(t *testing.T) {
9797
}
9898

9999
// test pengding count
100-
pending, err := monitor.GetPendingCount()
100+
_, err := monitor.GetPendingCount()
101101
if err != nil {
102102
t.Error(err)
103103
return
@@ -113,7 +113,7 @@ func TestMonitor_Cluster_GetStatus(t *testing.T) {
113113
t.Errorf("consume error: %v", err)
114114
return
115115
}
116-
ready, err := monitor.GetReadyCount()
116+
_, err = monitor.GetReadyCount()
117117
if err != nil {
118118
t.Error(err)
119119
return
@@ -127,7 +127,7 @@ func TestMonitor_Cluster_GetStatus(t *testing.T) {
127127
for i := 0; i < size/2; i++ {
128128
_, _ = queue.ready2Unack()
129129
}
130-
_, err := monitor.GetProcessingCount()
130+
_, err = monitor.GetProcessingCount()
131131
if err != nil {
132132
t.Error(err)
133133
return

0 commit comments

Comments
 (0)