hunk.code_window:     var action = payload.action;
       switch (action.type) {
       case ActionTypes.RECEIVED_POSTS: {
           if (PostStore.currentFocusedPostId !== null && action.isPost) {
               PostStore.storePosts(PostStore.currentFocusedPostId, makePostListNonNull(action.post_list), action.checkLatest);
               PostStore.checkBounds(PostStore.currentFocusedPostId, action.numRequested, makePostListNonNull(action.post_list), action.before);
           }
  
hunk.labels: keep keep keep keep keep replace keep keep
hunk.after_edit:             PostStore.storePosts(PostStore.currentFocusedPostId, makePostListNonNull(action.post_list), action.checkLatest, action.checkEarliest);
  
hunk.file_path: webapp/stores/post_store.jsx
hunk.type: replace
file: package ldap
  
  import (
  	"reflect"
  	"testing"
  )
  
  // TestNewEntry tests that repeated calls to NewEntry return the same value with the same input
  func TestNewEntry(t *testing.T) {
  	dn := "testDN"
  	attributes := map[string][]string{
  		"alpha":   {"value"},
  		"beta":    {"value"},
  		"gamma":   {"value"},
  		"delta":   {"value"},
  		"epsilon": {"value"},
  	}
  	exectedEntry := NewEntry(dn, attributes)
  
  	iteration := 0
  	for {
  		if iteration == 100 {
  			break
  		}
  		testEntry := NewEntry(dn, attributes)
  		if !reflect.DeepEqual(exectedEntry, testEntry) {
  			t.Fatalf("consequent calls to NewEntry did not yield the same result:\n\texpected:\n\t%s\n\tgot:\n\t%s\n", exectedEntry, testEntry)
  		}
  		iteration = iteration + 1
  	}
  }
  