Browse Source

assert meta is nil on error

Darien Raymond 8 năm trước cách đây
mục cha
commit
7f4296cd78
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/proxyman/mux/mux_test.go

+ 1 - 0
app/proxyman/mux/mux_test.go

@@ -139,4 +139,5 @@ func TestReaderWriter(t *testing.T) {
 
 	meta, err = metaReader.Read()
 	assert.Error(err).IsNotNil()
+	assert.Pointer(meta).IsNil()
 }