(t *testing.T, h *Harness, nodeId state.NodeId)
| 360 | } |
| 361 | |
| 362 | func readCentralTimestamp(t *testing.T, h *Harness, nodeId state.NodeId) int64 { |
| 363 | t.Helper() |
| 364 | stdout, _, err := h.Exec(string(nodeId), []string{"cat", "/app/config/central.yaml"}) |
| 365 | if err != nil { |
| 366 | t.Fatal(err) |
| 367 | } |
| 368 | var cfg state.CentralCfg |
| 369 | if err := yaml.Unmarshal([]byte(stdout), &cfg); err != nil { |
| 370 | t.Fatalf("Failed to parse config from node: %v", err) |
| 371 | } |
| 372 | return cfg.Timestamp |
| 373 | } |
no test coverage detected