@@ -18,7 +18,7 @@ import (
1818func TestSetInternalClientOptions (t * testing.T ) {
1919 t .Parallel ()
2020
21- t .Run ("crypt with driver.Crypt " , func (t * testing.T ) {
21+ t .Run ("set crypt " , func (t * testing.T ) {
2222 t .Parallel ()
2323
2424 c := driver .NewCrypt (& driver.CryptOptions {})
@@ -28,25 +28,25 @@ func TestSetInternalClientOptions(t *testing.T) {
2828 require .Equal (t , c , opts .Crypt , "expected %v, got %v" , c , opts .Crypt )
2929 })
3030
31- t .Run ("set Crypt with driver.Deployment " , func (t * testing.T ) {
31+ t .Run ("set crypt - wrong type " , func (t * testing.T ) {
3232 t .Parallel ()
3333
3434 opts := options .Client ()
3535 err := SetInternalClientOptions (opts , "crypt" , & drivertest.MockDeployment {})
3636 require .EqualError (t , err , "unexpected type for crypt" )
3737 })
3838
39- t .Run ("set Deployment with driver.Deployment " , func (t * testing.T ) {
39+ t .Run ("set deployment " , func (t * testing.T ) {
4040 t .Parallel ()
4141
4242 d := & drivertest.MockDeployment {}
4343 opts := options .Client ()
4444 err := SetInternalClientOptions (opts , "deployment" , d )
45- require .NoError (t , err )
46- require .Equal (t , d , opts .Deployment )
45+ require .NoError (t , err , "error setting deployment: %v" , err )
46+ require .Equal (t , d , opts .Deployment , "expected %v, got %v" , d , opts . Deployment )
4747 })
4848
49- t .Run ("set Deployment with driver.Crypt " , func (t * testing.T ) {
49+ t .Run ("set deployment - wrong type " , func (t * testing.T ) {
5050 t .Parallel ()
5151
5252 opts := options .Client ()
0 commit comments