@@ -10,6 +10,7 @@ import (
1010type ValidatorTest struct {
1111 auth_email_file *os.File
1212 done chan bool
13+ update_seen bool
1314}
1415
1516func NewValidatorTest(t *testing.T) *ValidatorTest {
@@ -31,7 +32,12 @@ func (vt *ValidatorTest) TearDown() {
3132func (vt *ValidatorTest) NewValidator(domains []string,
3233 updated chan<- bool) func(string) bool {
3334 return newValidatorImpl(domains, vt.auth_email_file.Name(),
34− vt.done, func() { updated <- true })
35+ vt.done, func() {
36+ if vt.update_seen == false {
37+ updated <- true
38+ vt.update_seen = true
39+ }
40+ })
3541}
3642
3743// This will close vt.auth_email_file.