File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -118,18 +118,6 @@ func TestScanAll(t *testing.T) {
118
118
}
119
119
}
120
120
121
- //func TestShutdown(t *testing.T) {
122
- // clamd, teardown := setupTest(t)
123
- // defer teardown(t)
124
- // got, err := clamd.Shutdown(context.Background())
125
- // if err != nil {
126
- // t.Errorf("%v", err)
127
- // }
128
- // if !got {
129
- // t.Errorf("clamd.Shutdown() = %v; want true", got)
130
- // }
131
- //}
132
-
133
121
func TestStats (t * testing.T ) {
134
122
clamd := NewClamd ()
135
123
@@ -141,3 +129,14 @@ func TestStats(t *testing.T) {
141
129
t .Errorf ("clamd.ScanAll() = %v; want Stats" , got )
142
130
}
143
131
}
132
+
133
+ func TestShutdown (t * testing.T ) {
134
+ clamd := NewClamd ()
135
+ got , err := clamd .Shutdown (context .Background ())
136
+ if err != nil {
137
+ t .Errorf ("%v" , err )
138
+ }
139
+ if ! got {
140
+ t .Errorf ("clamd.Shutdown() = %v; want true" , got )
141
+ }
142
+ }
You can’t perform that action at this time.
0 commit comments