Selaa lähdekoodia

Only export delay settings if actually used

Lu Stadler 8 vuotta sitten
vanhempi
commit
125c76e4f5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      go/fake-http/fake-http.go

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

307
	Headers []Header `yaml:"headers"`
307
	Headers []Header `yaml:"headers"`
308
	Body    string   `yaml:"body"`
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
// AsHTTP returns a http.Response representation.
314
// AsHTTP returns a http.Response representation.