Skip to content

Commit ca76dc1

Browse files
committed
Add dot(.) at the end of comments
Signed-off-by: gkGaneshR <[email protected]>
1 parent c75a350 commit ca76dc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/options/options_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type options struct {
2626
HostnameOverride string
2727
}
2828

29-
// TestSetNodeNameOrDie tests for permutations of nodename, hostname and hostnameoverride
29+
// TestSetNodeNameOrDie tests for permutations of nodename, hostname and hostnameoverride.
3030
func TestSetNodeNameOrDie(t *testing.T) {
3131
option := map[string]struct {
3232
Expected options
@@ -67,27 +67,27 @@ func TestSetNodeNameOrDie(t *testing.T) {
6767

6868
for str, opt := range option {
6969

70-
// Setting with expected(desired) NODE_NAME env
70+
// Setting with expected(desired) NODE_NAME env.
7171
err = os.Setenv("NODE_NAME", opt.Expected.Nodename)
7272
if err != nil {
7373
t.Errorf("Unable to set env NODE_NAME")
7474
}
7575

7676
npdObj := NewNodeProblemDetectorOptions()
7777

78-
// Setting with expected(desired) HostnameOverride
78+
// Setting with expected(desired) HostnameOverride.
7979
npdObj.HostnameOverride = opt.Expected.HostnameOverride
8080

8181
npdObj.SetNodeNameOrDie()
8282
opt.ObtainedNodeName = npdObj.NodeName
8383

84-
// Setting back the original node name
84+
// Setting back the original node name.
8585
err = os.Setenv("NODE_NAME", orig_node_name)
8686
if err != nil {
8787
t.Errorf("Unable to set original : env NODE_NAME")
8888
}
8989

90-
// Checking for obtained node name
90+
// Checking for obtained node name.
9191
if opt.ObtainedNodeName != opt.Expected.HostnameOverride &&
9292
opt.ObtainedNodeName != opt.Expected.Nodename &&
9393
opt.ObtainedNodeName != orig_host_name {

0 commit comments

Comments
 (0)