Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs733
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sushant Mahajan
cs733
Commits
7b88a4c0
Commit
7b88a4c0
authored
Feb 09, 2015
by
Sushant Mahajan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.cse.iitb.ac.in:smahajan/cs733
parents
d8f890f1
88683f33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
assignment2/src/server_test.go
assignment2/src/server_test.go
+26
-0
No files found.
assignment2/src/server_test.go
View file @
7b88a4c0
...
...
@@ -104,6 +104,7 @@ func testNoReply(t *testing.T) {
buffer
:=
make
([]
byte
,
1024
)
conn
.
Read
(
buffer
)
n
:=
bytes
.
Index
(
buffer
,
[]
byte
{
0
})
fmt
.
Println
(
buffer
)
if
!
bytes
.
Equal
(
buffer
[
:
n
],
pair
.
from_server
)
{
t
.
Error
(
"For"
,
pair
.
to_server
,
string
(
pair
.
to_server
),
...
...
@@ -116,3 +117,28 @@ func testNoReply(t *testing.T) {
//time.Sleep(time.Millisecond)
}
}
// Add some dummy entries in raft.ClusterConfig such that majority is not achieved
// Expected: Time out should occur after 5 sec and log entry table should not be updated
func
CommandNotCommittedWithoutMajority
()
{
}
// Expected: Log entry table updated with the new entry
func
CommandCommittedWithMajority
()
{
}
// Multiple clients sending different requests
// Expected: Log entry table updated
func
ConcurrentManyClientsToLeader
()
{
}
// Single client sending 100 requests one after another
// Expected: Log entry table updated
func
ConcurrentClientManyRequestsToLeader
()
{
}
// Tests similar to the previous assignment (Copy/Paste)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment