Change default connection state to unknown
This commit is contained in:
parent
bc1c3e6337
commit
f78b79b49b
|
@ -36,9 +36,9 @@ func NewConnectionType(s string) ConnectionType {
|
|||
|
||||
// ConnectionType constants
|
||||
const (
|
||||
ConnectionCellular ConnectionType = iota // default value, LTE, 4G, 3G, EDGE, etc.
|
||||
ConnectionWifi // WIFI or iOS simulator
|
||||
ConnectionUnknown
|
||||
ConnectionUnknown ConnectionType = iota
|
||||
ConnectionCellular // cellular, LTE, 4G, 3G, EDGE, etc.
|
||||
ConnectionWifi // WIFI or iOS simulator
|
||||
)
|
||||
|
||||
// String formats ConnectionState for logs. Implements Stringer.
|
||||
|
|
|
@ -26,7 +26,7 @@ func TestConnectionState(t *testing.T) {
|
|||
{
|
||||
"zero value",
|
||||
ConnectionState{},
|
||||
"cellular",
|
||||
"unknown",
|
||||
},
|
||||
{
|
||||
"offline",
|
||||
|
|
Loading…
Reference in New Issue