Files
virtual-kubelet/node/lease_controller_test.go
Sargun Dhillon 735eb34829 This adds the v1 lease controller
This refactors the v1 lease controller. It makes two functional differences
to the lease controller:
* It no longer ties lease updates to node pings or node status updates
* There is no fallback mechanism to status updates

This also moves vk_envtest, allowing for future brown-box testing of the
lease controller with envtest
2021-01-05 11:40:44 -08:00

14 lines
198 B
Go

package node
import (
"errors"
"testing"
"gotest.tools/assert"
)
func TestNotReadyError(t *testing.T) {
n := newNodeNotReadyError(nil)
assert.Assert(t, errors.Is(n, &nodeNotReadyError{}))
}