@@ -31,8 +31,8 @@ func TestClientBackoff(t *testing.T) {
3131 client := NewClient ("" , "" )
3232 var total time.Duration
3333
34- for i := 1 ; i <= 50 && client .Backoff . Steps > 0 ; i ++ {
35- step := client .Backoff . Step ()
34+ for i := 1 ; i <= 50 && client .Steps > 0 ; i ++ {
35+ step := client .Step ()
3636 total += step
3737
3838 t .Logf ("%02d:%20v%20v" , i , step , total )
@@ -68,7 +68,7 @@ func TestClientDoWithBackoff(t *testing.T) {
6868
6969 // Client with one attempt, i.e. no backoff.
7070 client := NewClient (server .URL , "xyz" )
71- client .Backoff . Steps = 1
71+ client .Steps = 1
7272 assert .Equal (t , client .BaseURL .String (), server .URL )
7373
7474 ctx := context .Background ()
@@ -113,8 +113,8 @@ func TestClientDoWithBackoff(t *testing.T) {
113113
114114 // Client with brief backoff.
115115 client := NewClient (server .URL , "" )
116- client .Backoff . Duration = time .Millisecond
117- client .Backoff . Steps = 5
116+ client .Duration = time .Millisecond
117+ client .Steps = 5
118118 assert .Equal (t , client .BaseURL .String (), server .URL )
119119
120120 ctx := context .Background ()
@@ -170,8 +170,8 @@ func TestClientDoWithBackoff(t *testing.T) {
170170
171171 // Client with brief backoff.
172172 client := NewClient (server .URL , "" )
173- client .Backoff . Duration = time .Millisecond
174- client .Backoff . Steps = 5
173+ client .Duration = time .Millisecond
174+ client .Steps = 5
175175 assert .Equal (t , client .BaseURL .String (), server .URL )
176176
177177 ctx := context .Background ()
@@ -190,8 +190,8 @@ func TestClientDoWithBackoff(t *testing.T) {
190190
191191 // Client with lots of brief backoff.
192192 client := NewClient (server .URL , "" )
193- client .Backoff . Duration = time .Millisecond
194- client .Backoff . Steps = 100
193+ client .Duration = time .Millisecond
194+ client .Steps = 100
195195 assert .Equal (t , client .BaseURL .String (), server .URL )
196196
197197 ctx , cancel := context .WithTimeout (context .Background (), 50 * time .Millisecond )
0 commit comments