Skip to content

Commit 9f2d144

Browse files
committed
fix test and feature name
1 parent 1e75d6c commit 9f2d144

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/plugin-backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func main() {
5757
log.WithError(err).Fatal("auth checker error")
5858
}
5959

60-
if slices.Contains(cfg.Frontend.Features, "NetworkEvents") {
60+
if slices.Contains(cfg.Frontend.Features, "networkEvents") {
6161
// Add decoder hook
6262
model.AddFlowLineMapping(decoders.NetworkEventsToString)
6363
}

pkg/model/loki_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestQueryResponseUnmarshalLineMapping(t *testing.T) {
5252
},
5353
"values": [
5454
[
55-
"1731926700000000000",
55+
"1731930300000000000",
5656
"{\"SrcK8S_Name\":\"ip-10-0-1-7.ec2.internal\",\"Bytes\":66,\"Packets\":1,\"Interfaces\":[\"br-ex\"]}"
5757
]
5858
]
@@ -80,7 +80,7 @@ func TestQueryResponseUnmarshalLineMapping(t *testing.T) {
8080
},
8181
Entries: []Entry{
8282
{
83-
Timestamp: time.Date(2024, time.November, 18, 11, 45, 0, 0, time.Local),
83+
Timestamp: time.Unix(1731930300, 0),
8484
Line: `{"SrcK8S_Name":"ip-10-0-1-7.ec2.internal","Bytezz":66,"Packets":1,"Interfaces":["br-ex"]}`,
8585
},
8686
},

0 commit comments

Comments
 (0)