MCPcopy Create free account
hub / github.com/encodeous/nylon / readCentralTimestamp

Function readCentralTimestamp

e2e/distribution_test.go:362–373  ·  view source on GitHub ↗
(t *testing.T, h *Harness, nodeId state.NodeId)

Source from the content-addressed store, hash-verified

360}
361
362func 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}

Callers 1

Calls 1

ExecMethod · 0.80

Tested by

no test coverage detected