trace on New and add read locks

This commit is contained in:
Anand Babu (AB) Periasamy
2015-08-02 11:57:47 -07:00
parent d9493909d8
commit 697009c0a1
2 changed files with 20 additions and 7 deletions

View File

@@ -16,7 +16,6 @@
package probe
import (
"fmt"
"os"
"testing"
)
@@ -33,8 +32,14 @@ func TestProbe(t *testing.T) {
if es == nil {
t.Fail()
}
es.Trace()
fmt.Println(es)
// fmt.Println(es.JSON())
// fmt.Println(es.ToError())
newES := es.Trace()
if newES == nil {
t.Fail()
}
/*
fmt.Println(es)
fmt.Println(es.JSON())
fmt.Println(es.ToError())
*/
}