Commit b0012ffb authored by owlo's avatar owlo

hurm not writing properly

parent 540f9643
......@@ -823,8 +823,13 @@ func main() {
name := UIDMaker("post")
file, err := os.Create("tests/posts/"+name)
defer file.Close()
file.Write(signedContent)
file.Sync()
numBytes, err := file.Write(signedContent)
if err != nil {
panic(err)
}else {
fmt.Println("Wrote ", numBytes, " bytes")
file.Sync()
}
var borks []libs.ActorS
posts, err := ioutil.ReadDir("tests/posts/")
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment