@ -469,8 +469,8 @@ func TestInstallRelease_Atomic(t *testing.T) {
failer . WaitError = fmt . Errorf ( "I timed out" )
failer . WaitError = fmt . Errorf ( "I timed out" )
instAction . cfg . KubeClient = failer
instAction . cfg . KubeClient = failer
instAction . Atomic = true
instAction . Atomic = true
// disabling hooks to avoid an early fail when the
// disabling hooks to avoid an early fail when
// the WaitForDelete is called on the pre-delete hook execution
// WaitForDelete is called on the pre-delete hook execution
instAction . DisableHooks = true
instAction . DisableHooks = true
vals := map [ string ] interface { } { }
vals := map [ string ] interface { } { }
@ -479,7 +479,7 @@ func TestInstallRelease_Atomic(t *testing.T) {
is . Contains ( err . Error ( ) , "I timed out" )
is . Contains ( err . Error ( ) , "I timed out" )
is . Contains ( err . Error ( ) , "atomic" )
is . Contains ( err . Error ( ) , "atomic" )
// Now make sure it isn't in storage any more
// Now make sure it isn't in storage any more
_ , err = instAction . cfg . Releases . Get ( res . Name , res . Version )
_ , err = instAction . cfg . Releases . Get ( res . Name , res . Version )
is . Error ( err )
is . Error ( err )
is . Equal ( err , driver . ErrReleaseNotFound )
is . Equal ( err , driver . ErrReleaseNotFound )
@ -522,7 +522,7 @@ func TestInstallRelease_Atomic_Interrupted(t *testing.T) {
is . Contains ( err . Error ( ) , "atomic" )
is . Contains ( err . Error ( ) , "atomic" )
is . Contains ( err . Error ( ) , "uninstalled" )
is . Contains ( err . Error ( ) , "uninstalled" )
// Now make sure it isn't in storage any more
// Now make sure it isn't in storage any more
_ , err = instAction . cfg . Releases . Get ( res . Name , res . Version )
_ , err = instAction . cfg . Releases . Get ( res . Name , res . Version )
is . Error ( err )
is . Error ( err )
is . Equal ( err , driver . ErrReleaseNotFound )
is . Equal ( err , driver . ErrReleaseNotFound )
@ -796,5 +796,5 @@ func TestInstallWithSystemLabels(t *testing.T) {
t . Fatal ( "expected an error" )
t . Fatal ( "expected an error" )
}
}
is . Equal ( fmt . Errorf ( "user sup lied labels contains system reserved label name. System labels: %+v", driver . GetSystemLabels ( ) ) , err )
is . Equal ( fmt . Errorf ( "user sup p lied labels contains system reserved label name. System labels: %+v", driver . GetSystemLabels ( ) ) , err )
}
}