21 lines
587 B
Go
21 lines
587 B
Go
package workbenchruntime
|
|
|
|
import "strings"
|
|
import "testing"
|
|
|
|
func TestWorkbenchRuntimeReadIndexesCoverTraceFanout(t *testing.T) {
|
|
want := []string{
|
|
"idx_workbench_sessions_last_trace_updated",
|
|
"idx_workbench_messages_trace_updated",
|
|
"idx_workbench_parts_trace_updated",
|
|
"idx_workbench_turns_trace_updated",
|
|
"idx_workbench_projection_checkpoints_trace_updated",
|
|
}
|
|
joined := strings.Join(workbenchRuntimeReadIndexes, "\n")
|
|
for _, name := range want {
|
|
if !strings.Contains(joined, name) {
|
|
t.Fatalf("workbench runtime trace fanout index %s is not ensured", name)
|
|
}
|
|
}
|
|
}
|