Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
t-asaka committed Dec 18, 2018
1 parent a38f7c1 commit 020715a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions awsiotprotocol/mqtts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func TestMqttsNewClientOptions(t *testing.T) {
t.Fatalf("MQTT.ClientOptions is nil")
}
if mqttOpts.Servers[0].Scheme != "ssl" || mqttOpts.Servers[0].Host != "example.com:8882" {
t.Fatalf("MQTT Broker does not add correctly")
t.Fatalf("Broker is not added")
}
if mqttOpts.ClientID != "mqttsclientid" {
t.Fatalf("MQTT ClientID does not set correctly")
t.Fatalf("ClientID is not set")
}
}
6 changes: 3 additions & 3 deletions awsiotprotocol/wss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func TestWssNewClientOptions(t *testing.T) {
t.Fatalf("MQTT.ClientOptions is nil")
}
if mqttOpts.Servers[0].Scheme != "wss" || mqttOpts.Servers[0].Host != "example.com:443" {
t.Fatalf("MQTT Broker does not add correctly")
t.Fatalf("Broker is not added")
}
if mqttOpts.ClientID != "wssclientid" {
t.Fatalf("MQTT ClientID does not set correctly")
t.Fatalf("ClientID is not set")
}
if mqttOpts.AutoReconnect != false {
t.Fatalf("MQTT AutoReconnect flag does not set correctly")
t.Fatalf("AutoReconnect flag is not set")
}
}

0 comments on commit 020715a

Please sign in to comment.