mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Fix breakage of serve_hostnames soak test
This commit is contained in:
parent
86d3072492
commit
fe02c1247f
@ -23,7 +23,6 @@ a serivce
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
@ -248,7 +247,7 @@ func main() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var r api.Status
|
var r api.Status
|
||||||
if err := json.Unmarshal(hostname, &r); err != nil {
|
if err := api.Scheme.DecodeInto(hostname, &r); err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if r.Status == api.StatusFailure {
|
if r.Status == api.StatusFailure {
|
||||||
|
Loading…
Reference in New Issue
Block a user