Skip to content

Commit

Permalink
fix::> Test script to check function of remove
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychoPunkSage committed Jul 10, 2024
1 parent ee5c970 commit 53bf729
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Binary file modified bin/fs
Binary file not shown.
11 changes: 8 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ func main() {
time.Sleep(5 * time.Millisecond)

// Remove that file
if err := s2.Remove(key); err != nil {
log.Fatal(err)
}
// if err := s2.Remove(key); err != nil {
// log.Fatal(err)
// }

// Get that file from other networks
r, err := s2.Get(key)
Expand All @@ -64,6 +64,11 @@ func main() {
fmt.Printf("Received: %s\n", b)
}

if err := s2.Remove("PrivateData2"); err != nil {
fmt.Println("Unable to remove")
log.Fatal(err)
}

select {}
}

Expand Down

0 comments on commit 53bf729

Please sign in to comment.