(t *testing.T)
| 120 | } |
| 121 | |
| 122 | func TestBasicAgree2B(t *testing.T) { |
| 123 | servers := 3 |
| 124 | cfg := make_config(t, servers, false, false) |
| 125 | defer cfg.cleanup() |
| 126 | |
| 127 | cfg.begin("Test (2B): basic agreement") |
| 128 | |
| 129 | iters := 3 |
| 130 | for index := 1; index < iters+1; index++ { |
| 131 | nd, _ := cfg.nCommitted(index) |
| 132 | if nd > 0 { |
| 133 | t.Fatalf("some have committed before Start()") |
| 134 | } |
| 135 | |
| 136 | xindex := cfg.one(index*100, servers, false) |
| 137 | if xindex != index { |
| 138 | t.Fatalf("got index %v but expected %v", xindex, index) |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | cfg.end() |
| 143 | } |
| 144 | |
| 145 | // |
| 146 | // check, based on counting bytes of RPCs, that |
nothing calls this directly
no test coverage detected