Skip to content

refactor admin, raft, and tests: fix deadlocks, slow startup, and

Codecov / codecov/patch failed Jun 20, 2024 in 1s

34.29% of diff hit (target 38.05%)

View this Pull Request on Codecov

34.29% of diff hit (target 38.05%)

Annotations

Check warning on line 61 in cmd/dgate-server/main.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-server/main.go#L61

Added line #L61 was not covered by tests

Check warning on line 66 in cmd/dgate-server/main.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-server/main.go#L66

Added line #L66 was not covered by tests

Check warning on line 73 in cmd/dgate-server/main.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-server/main.go#L70-L73

Added lines #L70 - L73 were not covered by tests

Check warning on line 77 in cmd/dgate-server/main.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/dgate-server/main.go#L77

Added line #L77 was not covered by tests

Check warning on line 25 in internal/admin/admin_api.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_api.go#L25

Added line #L25 was not covered by tests

Check warning on line 28 in internal/admin/admin_api.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_api.go#L28

Added line #L28 was not covered by tests

Check warning on line 33 in internal/admin/admin_api.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_api.go#L32-L33

Added lines #L32 - L33 were not covered by tests

Check warning on line 48 in internal/admin/admin_api.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_api.go#L48

Added line #L48 was not covered by tests

Check warning on line 148 in internal/admin/admin_api.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_api.go#L148

Added line #L148 was not covered by tests

Check warning on line 42 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L32-L42

Added lines #L32 - L42 were not covered by tests

Check warning on line 45 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L45

Added line #L45 was not covered by tests

Check warning on line 48 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L48

Added line #L48 was not covered by tests

Check warning on line 59 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L57-L59

Added lines #L57 - L59 were not covered by tests

Check warning on line 64 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L64

Added line #L64 was not covered by tests

Check warning on line 72 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L67-L72

Added lines #L67 - L72 were not covered by tests

Check warning on line 81 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L79-L81

Added lines #L79 - L81 were not covered by tests

Check warning on line 83 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L83

Added line #L83 was not covered by tests

Check warning on line 86 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L86

Added line #L86 was not covered by tests

Check warning on line 89 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L88-L89

Added lines #L88 - L89 were not covered by tests

Check warning on line 91 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L91

Added line #L91 was not covered by tests

Check warning on line 95 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L95

Added line #L95 was not covered by tests

Check warning on line 99 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L99

Added line #L99 was not covered by tests

Check warning on line 107 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L103-L107

Added lines #L103 - L107 were not covered by tests

Check warning on line 116 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L111-L116

Added lines #L111 - L116 were not covered by tests

Check warning on line 130 in internal/admin/admin_fsm.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/admin/admin_fsm.go#L124-L130

Added lines #L124 - L130 were not covered by tests