misc: properly handle f.Close() defer
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
8d1c755dd1
commit
0288645875
|
|
@ -1211,8 +1211,8 @@ func TestBucketReconciler_reconcileArtifact(t *testing.T) {
|
||||||
// path.
|
// path.
|
||||||
t.Expect(os.RemoveAll(dir)).ToNot(HaveOccurred())
|
t.Expect(os.RemoveAll(dir)).ToNot(HaveOccurred())
|
||||||
f, err := os.Create(dir)
|
f, err := os.Create(dir)
|
||||||
defer f.Close()
|
|
||||||
t.Expect(err).ToNot(HaveOccurred())
|
t.Expect(err).ToNot(HaveOccurred())
|
||||||
|
t.Expect(f.Close()).ToNot(HaveOccurred())
|
||||||
conditions.MarkReconciling(obj, meta.ProgressingReason, "foo")
|
conditions.MarkReconciling(obj, meta.ProgressingReason, "foo")
|
||||||
conditions.MarkUnknown(obj, meta.ReadyCondition, "foo", "bar")
|
conditions.MarkUnknown(obj, meta.ReadyCondition, "foo", "bar")
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue