MCPcopy Index your code
hub / github.com/aws/aws-node-termination-handler / getNode

Function getNode

pkg/node/node_internal_test.go:57–66  ·  view source on GitHub ↗
(t *testing.T, drainHelper *drain.Helper, uptime uptime.UptimeFuncType)

Source from the content-addressed store, hash-verified

55}
56
57func getNode(t *testing.T, drainHelper *drain.Helper, uptime uptime.UptimeFuncType) *Node {
58 nthConfig := config.Config{
59 NodeName: nodeName,
60 }
61 tNode, err := NewWithValues(nthConfig, drainHelper, uptime)
62 if err != nil {
63 t.Error("failed to create node")
64 }
65 return tNode
66}
67
68func TestUncordonIfRebootedFileReadError(t *testing.T) {
69 client := fake.NewSimpleClientset()

Calls 2

NewWithValuesFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected