Now that tls_close() is more robust, consider a failure to be fatal.
authorjsing <jsing@openbsd.org>
Wed, 15 Apr 2015 16:09:29 +0000 (16:09 +0000)
committerjsing <jsing@openbsd.org>
Wed, 15 Apr 2015 16:09:29 +0000 (16:09 +0000)
regress/lib/libtls/gotls/tls_test.go

index f709fcb..2afcf93 100644 (file)
@@ -77,7 +77,7 @@ func TestTLSBasic(t *testing.T) {
        }
        defer func() {
                if err := tls.Close(); err != nil {
-                       t.Logf("Close failed: %v", err)
+                       t.Fatalf("Close failed: %v", err)
                }
        }()