Skip to content

Commit

Permalink
improve test coverage (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
beltran authored Jun 30, 2021
1 parent 2d87e3f commit ef83633
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ func TestConnectDefault(t *testing.T) {
connection.Close()
}


func TestConnectZookeeper(t *testing.T) {
configuration := NewConnectConfiguration()
configuration.Service = "hive"
_, err := ConnectZookeeper("host1:port1,host2:port2", getAuth(), configuration)
if err == nil {
t.Fatal("error was expected")
}
}

func TestDomainDoesntExist(t *testing.T) {
transport := os.Getenv("TRANSPORT")
auth := os.Getenv("AUTH")
Expand Down
1 change: 1 addition & 0 deletions sasl_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestSaslTransportThrift(t *testing.T) {
t.Fatal(err)
}
trans.Open()
trans.SetMaxLength(1638400)
socket.Reset()
TransportTest(t, trans, trans)
if trans.RemainingBytes() != 0 {
Expand Down

0 comments on commit ef83633

Please sign in to comment.