@@ -17,7 +17,6 @@ limitations under the License.
1717package v1beta1
1818
1919import (
20- "context"
2120 "testing"
2221
2322 "github.com/onsi/gomega"
@@ -48,20 +47,20 @@ func TestStorageMetal3MachineSpec(t *testing.T) {
4847
4948 // Test Create
5049 fetched := & Metal3Machine {}
51- g .Expect (c .Create (context . TODO (), created )).NotTo (gomega .HaveOccurred ())
50+ g .Expect (c .Create (t . Context (), created )).NotTo (gomega .HaveOccurred ())
5251
53- g .Expect (c .Get (context . TODO (), key , fetched )).NotTo (gomega .HaveOccurred ())
52+ g .Expect (c .Get (t . Context (), key , fetched )).NotTo (gomega .HaveOccurred ())
5453 g .Expect (fetched ).To (gomega .Equal (created ))
5554
5655 // Test Updating the Labels
5756 updated := fetched .DeepCopy ()
5857 updated .Labels = map [string ]string {"hello" : "world" }
59- g .Expect (c .Update (context . TODO (), updated )).NotTo (gomega .HaveOccurred ())
58+ g .Expect (c .Update (t . Context (), updated )).NotTo (gomega .HaveOccurred ())
6059
61- g .Expect (c .Get (context . TODO (), key , fetched )).NotTo (gomega .HaveOccurred ())
60+ g .Expect (c .Get (t . Context (), key , fetched )).NotTo (gomega .HaveOccurred ())
6261 g .Expect (fetched ).To (gomega .Equal (updated ))
6362
6463 // Test Delete
65- g .Expect (c .Delete (context . TODO (), fetched )).NotTo (gomega .HaveOccurred ())
66- g .Expect (c .Get (context . TODO (), key , fetched )).To (gomega .HaveOccurred ())
64+ g .Expect (c .Delete (t . Context (), fetched )).NotTo (gomega .HaveOccurred ())
65+ g .Expect (c .Get (t . Context (), key , fetched )).To (gomega .HaveOccurred ())
6766}
0 commit comments