MCPcopy Create free account
hub / github.com/aws/aws-node-termination-handler / TestIsUnschedulableFailure

Function TestIsUnschedulableFailure

pkg/node/node_test.go:216–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

214}
215
216func TestIsUnschedulableFailure(t *testing.T) {
217 tNode := getNode(t, getDrainHelper(fake.NewSimpleClientset()))
218 value, err := tNode.IsUnschedulable(nodeName)
219 h.Assert(t, err != nil, "Failed to return error on IsUnschedulable failing to fetch node")
220 h.Equals(t, true, value)
221}
222
223func TestMarkWithEventIDSuccess(t *testing.T) {
224 client := fake.NewSimpleClientset()

Callers

nothing calls this directly

Calls 3

IsUnschedulableMethod · 0.80
getNodeFunction · 0.70
getDrainHelperFunction · 0.70

Tested by

no test coverage detected