@@ -26,7 +26,6 @@ import (
26
26
"time"
27
27
28
28
"github.com/onsi/ginkgo"
29
- "github.com/onsi/gomega"
30
29
31
30
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
32
31
"k8s.io/apimachinery/pkg/util/version"
@@ -188,19 +187,19 @@ func (t *EtcdUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upg
188
187
}, 10 * time .Millisecond , done )
189
188
framework .Logf ("got %d users; want >=%d" , lastUserCount , t .successfulWrites )
190
189
191
- gomega . Expect (lastUserCount >= t .successfulWrites ). To ( gomega . BeTrue () )
190
+ framework . ExpectEqual (lastUserCount >= t .successfulWrites , true )
192
191
ratio := float64 (success ) / float64 (success + failures )
193
192
framework .Logf ("Successful gets %d/%d=%v" , success , success + failures , ratio )
194
193
ratio = float64 (t .successfulWrites ) / float64 (writeAttempts )
195
194
framework .Logf ("Successful writes %d/%d=%v" , t .successfulWrites , writeAttempts , ratio )
196
195
framework .Logf ("Errors: %v" , errors )
197
196
// TODO(maisem): tweak this value once we have a few test runs.
198
- gomega . Expect (ratio > 0.75 ). To ( gomega . BeTrue () )
197
+ framework . ExpectEqual (ratio > 0.75 , true )
199
198
}
200
199
201
200
// Teardown does one final check of the data's availability.
202
201
func (t * EtcdUpgradeTest ) Teardown (f * framework.Framework ) {
203
202
users , err := t .listUsers ()
204
203
framework .ExpectNoError (err )
205
- gomega . Expect (len (users ) >= t .successfulWrites ). To ( gomega . BeTrue () )
204
+ framework . ExpectEqual (len (users ) >= t .successfulWrites , true )
206
205
}
0 commit comments