Parcourir la Source

Only export delay settings if actually used

Lu Stadler 7 ans auparavant
Parent
commit
125c76e4f5
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      go/fake-http/fake-http.go

+ 2 - 2
go/fake-http/fake-http.go

@ -307,8 +307,8 @@ type Response struct {
307 307
	Headers []Header `yaml:"headers"`
308 308
	Body    string   `yaml:"body"`
309 309
310
	Delay       time.Duration `yaml:"delay"`
311
	RandomDelay time.Duration `yaml:"randomDelay"`
310
	Delay       time.Duration `yaml:"delay,omitempty"`
311
	RandomDelay time.Duration `yaml:"randomDelay,omitempty"`
312 312
}
313 313
314 314
// AsHTTP returns a http.Response representation.